/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author LYS
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface PmQusrequest extends BasicModel<PmQusrequest> {
  level?: string; // 紧急程度
  content?: string; // 问题描述
  result?: string; // 处理结果
  planDate?: string; // 计划处理日期
  handDate?: string; // 实际处理日期
}

export const pmQusrequestList = (params?: PmQusrequest | any) =>
  defHttp.get<PmQusrequest>({ url: adminPath + '/orther/qus/pmQusrequest/list', params });

export const pmQusrequestListData = (params?: PmQusrequest | any) =>
  defHttp.post<Page<PmQusrequest>>({ url: adminPath + '/orther/qus/pmQusrequest/listData', params });

export const pmQusrequestForm = (params?: PmQusrequest | any) =>
  defHttp.get<PmQusrequest>({ url: adminPath + '/orther/qus/pmQusrequest/form', params });

export const pmQusrequestSave = (params?: any, data?: PmQusrequest | any) =>
  defHttp.postJson<PmQusrequest>({ url: adminPath + '/orther/qus/pmQusrequest/save', params, data });

export const pmQusrequestDelete = (params?: PmQusrequest | any) =>
  defHttp.get<PmQusrequest>({ url: adminPath + '/orther/qus/pmQusrequest/delete', params });

export const pmQusrequestPass = (params?: PmQusrequest | any) =>
  defHttp.post<PmQusrequest>({ url: adminPath + '/orther/qus/pmQusrequest/pass', params });

export const pmQusrequestBack = (params?: PmQusrequest | any) =>
  defHttp.post<PmQusrequest>({ url: adminPath + '/orther/qus/pmQusrequest/back', params });

export const pmQusrequestResult = (params?: PmQusrequest | any) =>
  defHttp.post<PmQusrequest>({ url: adminPath + '/orther/qus/pmQusrequest/result', params });